let play = {
    currentTime: '00:00',
    duration: '00:00',
    percent: 0,
    title: '',
    singer: '',
    coverImgUrl: '',
}

export const setPlay = (playInfo) => {
    play = playInfo
    console.log(play);
}

export const getPlay = () => {
    return play
}

export const delPlay = () => {
    play = {
        currentTime: '00:00',
        duration: '00:00',
        percent: 0,
        title: '',
        singer: '',
        coverImgUrl: '',
    }
}

export const uptPlay = (newPlay) => {
    play = {
        ...play,
        ...newPlay
    }
}